package com.zx.controller.verification;

import com.zx.util.Uuid;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.UUID;

/**
 * @author sunkai
 * @date 2022/8/17 0017 14:58
 * @mood zhou xun
 */
@Controller
public class verificationUuid {
    @GetMapping("/code")
    @ResponseBody
    public String code(){
        return Uuid.uid4();
    }
}
